#!/bin/bash

# 定义 .condarc 文件的路径
CONDARC_PATH="$HOME/.condarc"

# 创建或覆盖 .condarc 文件
cat > "$CONDARC_PATH" <<EOL
channels:
  - https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/main/
  - https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/free/
  - defaults
EOL